package com.bestcem.xm.survey.convert;

import com.bestcem.xm.survey.controller.vo.SurveyColumnVo;
import com.bestcem.xm.survey.controller.vo.SurveyQuotaCheckItemVo;
import com.bestcem.xm.survey.controller.vo.SurveyQuotaConditionVo;
import com.bestcem.xm.survey.entity.SurveyColumn;
import com.bestcem.xm.survey.entity.SurveyQuotaCheckItem;
import com.bestcem.xm.survey.entity.SurveyQuotaCondition;
import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;

import java.util.List;

/**
 * @author luguitao
 * @version v1.0
 * @date 2021/8/18 17:27
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface SurveyConvertMapper {

    /**
     * entity转换为vo
     *
     * @param surveyQuotaCheckItem 实体类
     * @return vo
     */
    SurveyQuotaCheckItemVo checkItem2Vo(SurveyQuotaCheckItem surveyQuotaCheckItem);

    /**
     * entity转换为vo
     *
     * @param surveyQuotaCheckItems 实体类
     * @return vo
     */
    List<SurveyQuotaCheckItemVo> checkItem2Vos(List<SurveyQuotaCheckItem> surveyQuotaCheckItems);

    /**
     * entity转换为vo
     *
     * @param surveyQuotaCondition 实体类
     * @return vo
     */
    SurveyQuotaConditionVo condition2Vo(SurveyQuotaCondition surveyQuotaCondition);

    SurveyColumnVo surveyColumn2Vo(SurveyColumn surveyColumn);
}
